#include "AILineSelectorAlgMax.h"
#include "../DrawingElements/Cell.h"
#include <QtAlgorithms>

AILineSelectorAlgMax::AILineSelectorAlgMax(DotController *pController, QObject *parent) :
    AILineSelector(pController,parent)
{
}

void AILineSelectorAlgMax::sort(QList<Cell *> &cells)
{
    qSort(cells.begin(),cells.end(),AILineSelectorAlgMax::compare);
}

bool AILineSelectorAlgMax::compare(Cell *pCell1, Cell *pCell2)
{
    return pCell1->lineAddedCount() < pCell2->lineAddedCount();
}


